'use strict';

const question = require('../controllers/question');
module.exports = function(router) {
  
  // 获取题标签
  router.get('/question/tags',question.getQuestionTags,{});

  // 获取指定id的题标签
  router.get('/question/tag/:id',question.getQuestionTag, { permissions: ['access_knowledge_file'] });

  // 新建/编辑 题标签
  router.post('/question/tag',question.updateQuestionTag, { permissions: ['access_knowledge_file'] });
  
};